<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<title>家族史</title>
<meta name="viewport"
	content="width=device-width,initial-scale=1,user-scalable=0">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="电子病历,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="<%=basePath%>css/weui.css" />
<link rel="stylesheet" href="<%=basePath%>css/example.css" />
<!-- <script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script> -->
<!-- <script type="text/javascript" src="<%=basePath%>js/jquery.js"></script> -->
<!-- <script type="text/javascript" src="js/history.js"></script> -->
<style type="text/css">
.weui_label {
	width: 8em
}
</style>
</head>
<script type="text/javascript">
var basePath="<%=basePath%>";
	$(document).ready(function() {
		var menstrualHistory = $("#menstrualHistory").val();
		if (menstrualHistory != "") {
			$("#yuejing").show();
		}
	});
	function cancerOpt() {
		var cancerSel = $("#cancerSel").val();
		if(cancerSel==1){
		$("#cancer").show();
		}else{
			$("#cancer").hide();
		}
	}
	
	function psychogenyOpt(){
	var psychogenySel = $("#psychogenySel").val();
		if(psychogenySel==1){
		$("#psychogeny").show();
		}else{
			$("#psychogeny").hide();
		}
	}
	function geneticDiseaseOpt(){
	var geneticDiseaseSel = $("#geneticDiseaseSel").val();
		if(geneticDiseaseSel==1){
		$("#geneticDisease").show();
		}else{
			$("#geneticDisease").hide();
		}
	}
	function disabilityOpt(){
		var disabilitySel = $("#disabilitySel").val();
		if(disabilitySel==1){
		$("#disability").show();
		}else{
			$("#disability").hide();
		}
	}
	//忽略
	function ignore(){
		pop1();
	}
	
	function pop1(){
    var w_height = $(window).height();
    $('.theleftmenu').css('height',w_height);
    $('.theleftmenu').css('display','block');
 	 $(".historymenu").hide();
       setTimeout(function(){
		$('.historymenu,.bg_mark').css('display','none');
		$('.historymenu .leftmenu_con ').css('display','none');
							},200);
//       弹出边菜单
    $('.theleftmenu .bg_mark').css('display','block');
    
    $('.theleftmenu .theleftmenu_con ' ).stop().animate({ left: '0' }, 400);
     
}
</script>
<body ontouchstart>
	<div class="container js_container"></div>
		<!-- 个人病史开始 -->
		<div class="page" id="personHistory">
			<div class="bd">
			<form action="">
				<div class="weui_grids">
				<h1 class="page_title" style="color:#225fba">家族病史</h1>
					<div class="weui_cells_title">
						
					</div>
					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span> 癌症：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="cancerSel"
								id="cancerSel" onchange="cancerOpt();">
							<option value="0"<c:if test="${bean.cancer==0 }">selected="selected"</c:if>>无</option>
							<option value="1"<c:if test="${bean.cancer==1 }">selected="selected"</c:if>>有</option>
							</select>
						</div>
					</div>
					<textarea class="weui_textarea" placeholder="请输入具体的癌症" rows="3"
						id="cancer" name="cancer" style="display: none">${bean.cancer }</textarea>

					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span> 精神障碍性疾病：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="psychogenySel"
								id="psychogenySel" onchange="psychogenyOpt();">
							<option value="0"<c:if test="${bean.psychogeny==0 }">selected="selected"</c:if>>无</option>
							<option value="1"<c:if test="${bean.psychogeny==1 }">selected="selected"</c:if>>有</option>
							</select>
						</div>
					</div>
					<textarea class="weui_textarea" placeholder="请输入精神障碍性疾病" rows="3"
						id="psychogeny" name="psychogeny" style="display: none">${bean.psychogeny }</textarea>

					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span>高血压：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="highBloodPressure"
								id="highBloodPressure">
								<option value="0"
									<c:if test="${bean.highBloodPressure==0 }">selected="selected"</c:if>>无</option>
								<option value="1"
									<c:if test="${bean.highBloodPressure==1 }">selected="selected"</c:if>>有</option>
							</select>
						</div>
					</div>
					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span>糖尿病：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="diabetes"
								id="diabetes">
								<option value="0"
									<c:if test="${bean.diabetes==0 }">selected="selected"</c:if>>无</option>
								<option value="1"
									<c:if test="${bean.diabetes==1 }">selected="selected"</c:if>>有</option>
							</select>
						</div>
					</div>
					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span>中风：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="stroke"
								id="stroke">
								<option value="0"
									<c:if test="${bean.stroke==0 }">selected="selected"</c:if>>无</option>
								<option value="1"
									<c:if test="${bean.stroke==1 }">selected="selected"</c:if>>有</option>
							</select>
						</div>
					</div>
				<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span>冠心病：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="coronaryHeart"
								id="coronaryHeart">
								<option value="0"
									<c:if test="${bean.coronaryHeart==0 }">selected="selected"</c:if>>无</option>
								<option value="1"
									<c:if test="${bean.coronaryHeart==1 }">selected="selected"</c:if>>有</option>
							</select>
						</div>
					</div>
					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span> 遗传病：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="geneticDiseaseSel"
								id="geneticDiseaseSel" onchange="geneticDiseaseOpt();">
							<option value="0"<c:if test="${bean.geneticDisease==0 }">selected="selected"</c:if>>无</option>
							<option value="1"<c:if test="${bean.geneticDisease==1 }">selected="selected"</c:if>>有</option>
							</select>
						</div>
					</div>
					<textarea class="weui_textarea" placeholder="请输入遗传" rows="3"
						id="geneticDisease" name="geneticDisease" style="display: none">${bean.geneticDisease }</textarea>

					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span> 重大致残/危机生命疾病：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="disabilitySel"
								id="disabilitySel" onchange="disabilityOpt();">
							<option value="0"<c:if test="${bean.disability==0 }">selected="selected"</c:if>>无</option>
							<option value="1"<c:if test="${bean.disability==1 }">selected="selected"</c:if>>有</option>
							</select>
						</div>
					</div>
					<textarea class="weui_textarea" placeholder="请输入 重大致残/危机生命疾病" rows="3"
						id="disability" name="disability" style="display: none">${bean.disability }</textarea>



				</div>
				<input type="reset" style="display:none;" /> 
			</div>
			</form>
					<div class="button_sp_area" style="text-align:-webkit-center;">
					
					<a href="javascript:;"
							class="weui_btn weui_btn_mini weui_btn_primary" onclick="ignore();">忽略</a>
					<a href="javascript:;"
							class="weui_btn weui_btn_mini weui_btn_primary" onclick="backMenHis();">上一步</a>
						 <a href="javascript:;"
							class="weui_btn weui_btn_mini weui_btn_primary" onclick="toPerson();">下一步</a>
					</div>
		</div>
		<!-- 个人病史结束 -->


	
	
	<!--     toast开始 -->
						<div id="loadingToast" class="weui_loading_toast"
							style="display: none;">
							<div class="weui_mask_transparent"></div>
							<div class="weui_toast">
								<div class="weui_loading">
									<div class="weui_loading_leaf weui_loading_leaf_0"></div>
									<div class="weui_loading_leaf weui_loading_leaf_1"></div>
									<div class="weui_loading_leaf weui_loading_leaf_2"></div>
									<div class="weui_loading_leaf weui_loading_leaf_3"></div>
									<div class="weui_loading_leaf weui_loading_leaf_4"></div>
									<div class="weui_loading_leaf weui_loading_leaf_5"></div>
									<div class="weui_loading_leaf weui_loading_leaf_6"></div>
									<div class="weui_loading_leaf weui_loading_leaf_7"></div>
									<div class="weui_loading_leaf weui_loading_leaf_8"></div>
									<div class="weui_loading_leaf weui_loading_leaf_9"></div>
									<div class="weui_loading_leaf weui_loading_leaf_10"></div>
									<div class="weui_loading_leaf weui_loading_leaf_11"></div>
								</div>
								<p class="weui_toast_content">保存中...</p>
							</div>
						</div>

						<div id="toast" style="display: none;">
							<div class="weui_mask_transparent"></div>
							<div class="weui_toast">
								<i class="weui_icon_toast"></i>
								<p class="weui_toast_content" id="info">保存成功</p>
							</div>
						</div>
						<!--     toast结束 -->
</body>
</html>
